//
//  UIColor+Hex.h
//  OCBase
//
//  Created by resico ios on 2019/11/28.
//  Copyright © 2019 侯伟. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (Hex)

/// 十六进制颜色
/// color
+ (UIColor *)colorWithHexString:(NSString *)color;

/// 十六进制颜色
/// hexColor 十六进制值
/// alpha 透明度
+ (UIColor *)colorWithHexString:(NSString *)hexColor alpha:(CGFloat)alpha;

+ (UIImage *)createColorImg:(NSString *)hexColor;

+ (UIImage *)createColorImg:(NSString *)hexColor alpha:(CGFloat)alpha;

@end

NS_ASSUME_NONNULL_END
